package Demo;

import java.util.TreeMap;
import java.util.TreeSet;

/**
 * @author げっしょく
 * @date 2021/7/28
 */
public class Tree {
    public static void main(String[] args) {
        TreeMap<TStudent, String> ts = new TreeMap<>();
        TStudent tu1 = new TStudent("niuma", 25);
        TStudent tu2 = new TStudent("zouqingquan", 25);
        TStudent tu3 = new TStudent("bushihaodongxi", 26);
        ts.put(tu1,"hunan");
        ts.put(tu2,"hunan");
        ts.put(tu3,"hunan");
        System.out.println(ts);
    }
}
